package one_02_operator;

public class demo04 {
    // ++   -- 自增自减 一元运算符
    public static void main(String[] args) {
        int a = 3;
        int b = a++; //执行完后,b=3。先给b赋值，再自增
        //a++  a=a+1
        int c = ++a; //执行完后,c=5。先自增,再给b赋值
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);


        // 幂运算
        double d = Math.pow(3,2);//3的2次方
        System.out.println(d);
    }
}
